import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
	title: "博雅国际-双元制",
	description: "前端文档。",
	themeConfig: {
		// https://vitepress.dev/reference/default-theme-config
		nav: [
			{ text: "首页", link: "/" },
			{ text: "环境", link: "/environment" },
		],
		sidebar: [
			{
				text: "环境",
				items: [{ text: "环境配置", link: "/environment/environment" }],
			},
			{
				text: "认证和授权",
				items: [{ text: "认证流程", link: "/auth/auth" }],
			},
			{
				text: "接口文档",
				items: [
					{ text: "认证", link: "/api-documentation/auth" },
					{ text: "文件", link: "/api-documentation/file" },
					{ text: "用户", link: "/api-documentation/user" },
					{ text: "报名", link: "/api-documentation/signup" },
				],
			},
			{
				text: "数据模型",
				items: [
					{ text: "Response", link: "/data-model/response" },
					{ text: "UserInfo", link: "/data-model/user-info" },
					{ text: "StudentInfo", link: "/data-model/student-info" },
				],
			},
			{
				text: "状态码",
				items: [
					{ text: "200", link: "/status-code/200" },
					{ text: "400", link: "/status-code/400" },
					{ text: "500", link: "/status-code/500" },
				],
			},
			{
				text: "指南",
				items: [{ text: "联系方式", link: "/help/contact" }],
			},
		],
		socialLinks: [
			{ icon: "wechat", link: "weixin://contacts/profile/Bsyy丶" },
			{ icon: "gitee", link: "https://gitee.com/Bsyy_Yz" },
		],
	},
	markdown: {
		container: {
			tipLabel: "提示",
			warningLabel: "警告",
			dangerLabel: "危险",
			infoLabel: "信息",
			detailsLabel: "详细信息",
		},
	},
	vite: {
		server: {
			host: "0.0.0.0",
			port: 5173,
		},
	},
});
